﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SearchProgressModel
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.ComponentModel;
using System.Windows;


namespace DnProcessSimulateCommands;

public class SearchProgressModel : INotifyPropertyChanged
{
  public event PropertyChangedEventHandler PropertyChanged;

  private void OnPropertyChanged(string propertyName)
  {
    PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
    if (propertyChanged == null)
      return;
    propertyChanged((object) this, new PropertyChangedEventArgs(propertyName));
  }

  public Visibility SearchProgressVisible { get; protected set; }

  internal void UpdateSearchProgress(bool show)
  {
    this.SearchProgressVisible = show ? Visibility.Visible : Visibility.Hidden;
    this.OnPropertyChanged("SearchProgressVisible");
  }
}
